﻿using System;

namespace Yaml.Presentation.Parsing.TokenScanners {
    class AnchorTokenScanner : AnchorTokenScannerBase {

        public AnchorTokenScanner(Scanner scanner)
            : base(scanner, '&') {
        }

        protected override Yaml.Presentation.Tokens.Token CreateToken() {
            return new Tokens.AnchorToken(Start, End, Anchor);
        }
    }
}
